﻿namespace JetBlack.SimpleTopicBus.Distributor.Config
{
    /// <summary>
    /// A class representing the configuration of an adapter.
    /// </summary>
    public class Adapter
    {
        /// <summary>
        /// The adapter name.
        /// </summary>
        public string Name;

        /// <summary>
        /// The port.
        /// </summary>
        public int Port;

        /// <summary>
        /// The constructor for an adapter.
        /// </summary>
        /// <param name="name">The adapter name.</param>
        /// <param name="port">The port.</param>
        public Adapter(string name, int port)
        {
            Name = name;
            Port = port;
        }
    }
}
